import request from '@/utils/request'

// 查询WS数据列表
export function listChatWs(query) {
  return request({
    url: '/business/chatWs/list',
    method: 'get',
    params: query
  })
}

// 查询WS数据详细
export function getChatWs(id) {
  return request({
    url: '/business/chatWs/' + id,
    method: 'get'
  })
}

// 新增WS数据
export function addChatWs(data) {
  return request({
    url: '/business/chatWs',
    method: 'post',
    data: data
  })
}

// 修改WS数据
export function updateChatWs(data) {
  return request({
    url: '/business/chatWs',
    method: 'put',
    data: data
  })
}

// 删除WS数据
export function delChatWs(id) {
  return request({
    url: '/business/chatWs/' + id,
    method: 'delete'
  })
}
